home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 5817 / 5817.xpi / chrome / content / preferences.xul < prev    next >
Extensible Markup Language  |  2010-02-11  |  16KB  |  294 lines

  1. <?xml version="1.0"?>
  2.  
  3. <?xml-stylesheet href="chrome://global/skin/global.css"?>
  4.  
  5. <!DOCTYPE window SYSTEM "chrome://sqlitemanager/locale/preferences.dtd">
  6.  
  7. <prefwindow type="prefwindow" id="SQLiteManagerPreferences"
  8.   windowtype="Browser:Preferences" title="&prefwinTitle;"
  9.   xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  10.   xmlns:html="http://www.w3.org/1999/xhtml"
  11.   style="">
  12.  
  13.   <script type="application/x-javascript" src="globals.js"/>  
  14.   <script type="application/x-javascript">
  15.   <![CDATA[
  16.     window.addEventListener("load", sm_setCurrentSettings, false);
  17.   ]]>
  18.   </script>
  19.  
  20.   <prefpane id="main-options" label="&paneMain.title;">
  21.     <preferences>
  22.       <preference id="pref-openMode" 
  23.         name="extensions.sqlitemanager.openMode" type="int"/>
  24.       <preference id="pref-openADS" 
  25.         name="extensions.sqlitemanager.handleADS" type="int"/>
  26.       <preference id="pref-openWithLastDb" 
  27.         name="extensions.sqlitemanager.openWithLastDb" type="bool"/>
  28.       <preference id="pref-promptForLastDb" 
  29.         name="extensions.sqlitemanager.promptForLastDb" type="bool"/>
  30.       <preference id="pref-autoBackup" 
  31.         name="extensions.sqlitemanager.autoBackup" type="string"/>
  32.       <preference id="pref-sqliteFileExtensions" 
  33.         name="extensions.sqlitemanager.sqliteFileExtensions" type="string"/>
  34.       <preference id="pref-tableForExtensionManagement" 
  35.         name="extensions.sqlitemanager.tableForExtensionManagement" type="string"/>
  36.       <preference id="pref-identifierQuoteChar" name="extensions.sqlitemanager.identifierQuoteChar" type="string"/>
  37.     </preferences>
  38.     <groupbox>
  39.       <caption label="&pref-openMode.label;"/>
  40.       <radiogroup id="rg-openMode" value="1" preference="pref-openMode">
  41.         <radio label="&pref-openMode-win;" value="1" selected="true" accesskey="&pref-openMode-win.ak;"/>
  42.         <radio label="&pref-openMode-tab;" value="2"/>
  43.       </radiogroup>
  44.       </groupbox>
  45.       <groupbox>
  46.       <caption label="&whenSMStarts;"/>
  47.       <checkbox id="cb-openWithLastDb" 
  48.         label="&pref-openWithLastDb.label;"
  49.         accesskey="&pref-openWithLastDb.ak;"
  50.         preference="pref-openWithLastDb" 
  51.         checked="true"/>
  52.       <checkbox id="cb-promptForLastDb" 
  53.         label="&pref-promptForLastDb.label;"
  54.         accesskey="&pref-promptForLastDb.ak;"
  55.         preference="pref-promptForLastDb" 
  56.         checked="true"/>
  57.       </groupbox>
  58.       <hbox>
  59.         <label style="padding-top:3px" 
  60.             accesskey="&pref-autoBackup.ak;"
  61.             control="ml-autoBackup" 
  62.             value="&pref-autoBackup.label;"/>
  63.         <spacer flex="1"/>
  64.         <menulist id="ml-autoBackup" style="width: 20ex" sizetopopup="always" preference="pref-autoBackup">
  65.           <menupopup>
  66.             <menuitem label="&pref-autoBackup.off;" value="off"/>
  67.             <menuitem label="&pref-autoBackup.on;" value="on"/>
  68.             <menuitem label="prompt" value="prompt"/>
  69.           </menupopup>
  70.         </menulist>
  71.       </hbox>
  72.       <hbox>
  73.         <label value="&pref-sqliteFileExtensions.label;" style="padding-top:5px" accesskey="&pref-sqliteFileExtensions.ak;" control="tb-sqliteFileExtensions"/>
  74.             <spacer flex="1"/>
  75.         <textbox id="tb-sqliteFileExtensions" flex="1" preference="pref-sqliteFileExtensions"/>
  76.         </hbox>
  77.         <hbox>
  78.         <label value="&pref-tableForExtensionManagement.label;" style="padding-top:5px" accesskey="&pref-tableForExtensionManagement.ak;" control="tb-tableForExtensionManagement"/>
  79.             <spacer flex="1"/>
  80.         <textbox id="tb-tableForExtensionManagement" flex="1" preference="pref-tableForExtensionManagement"/>
  81.         </hbox>
  82.       <groupbox>
  83.       <caption label="&pref-openADS.label;"/>
  84.       <radiogroup id="rg-openADS" preference="pref-openADS">
  85.        <hbox>
  86.           <radio label="&disable;" value="0"/>
  87.           <radio label="&enable;" value="1"/>
  88.        </hbox>
  89.       </radiogroup>
  90.       </groupbox>
  91.       <hbox>
  92.         <label value="&pref-identifierQuoteChar.label;" style="padding-top:5px"/>
  93.         <spacer flex="1"/>
  94.         <menulist id="ml-identifierQuoteChar" style="width: 20ex" sizetopopup="always" preference="pref-identifierQuoteChar">
  95.           <menupopup>
  96.             <menuitem label="&pref-identifierQuoteChar-doublequotes;" value='""'/>
  97.             <menuitem label="&pref-identifierQuoteChar-squarebrackets;" value="[]"/>
  98.             <menuitem label="&pref-identifierQuoteChar-graveaccents;" value="``"/>
  99.           </menupopup>
  100.         </menulist>
  101.       </hbox>
  102.       </prefpane>
  103.       <prefpane id="confirm-options" label="&panePrompts.title;">
  104.         <preferences>
  105.           <preference id="pref-confirm.records" name="extensions.sqlitemanager.confirm.records" type="bool"/>
  106.           <preference id="pref-confirm.create" name="extensions.sqlitemanager.confirm.create" type="bool"/>
  107.           <preference id="pref-confirm.otherSql" name="extensions.sqlitemanager.confirm.otherSql" type="bool"/>
  108.         </preferences>
  109.         <groupbox>
  110.         <caption label="&confirmBeforeExecute;"/>
  111.           <checkbox id="cb-pref-confirm.records" label="&pref-confirm.records.label;" preference="pref-confirm.records" checked="true"/>
  112.           <checkbox id="cb-pref-confirm.create" label="&pref-confirm.create.label;" preference="pref-confirm.create" checked="true"/>
  113.           <checkbox id="cb-pref-confirm.otherSql" label="&pref-confirm.otherSql.label;" preference="pref-confirm.otherSql" checked="true"/>
  114.         </groupbox>
  115.       </prefpane>
  116.       <prefpane id="interface-options" label="&paneInterface.title;">
  117.         <preferences>
  118.           <preference id="pref-hideMainToolbar" name="extensions.sqlitemanager.hideMainToolbar" type="bool"/>
  119.           <preference id="pref-showMainToolbarDatabase" name="extensions.sqlitemanager.showMainToolbarDatabase" type="bool"/>
  120.           <preference id="pref-showMainToolbarTable" name="extensions.sqlitemanager.showMainToolbarTable" type="bool"/>
  121.           <preference id="pref-showMainToolbarIndex" name="extensions.sqlitemanager.showMainToolbarIndex" type="bool"/>
  122.           <preference id="pref-showMainToolbarDebug" name="extensions.sqlitemanager.showMainToolbarDebug" type="bool"/>
  123.  
  124.           <preference id="pref-notificationDuration" name="extensions.sqlitemanager.notificationDuration" type="int"/>
  125.           <preference id="pref-displayNumRecords" name="extensions.sqlitemanager.displayNumRecords" type="int"/>
  126.           <preference id="pref-maxColumnsInTable" name="extensions.sqlitemanager.maxColumnsInTable" type="int"/>
  127.  
  128.           <preference id="pref-textForBlob" name="extensions.sqlitemanager.textForBlob" type="string"/>
  129.           <preference id="pref-showBlobSize" name="extensions.sqlitemanager.showBlobSize" type="bool"/>
  130.           <preference id="pref-maxSizeToShowBlobData" name="extensions.sqlitemanager.maxSizeToShowBlobData" type="int"/>
  131.           <preference id="pref-blob.howToShowData" name="extensions.sqlitemanager.blob.howToShowData" type="int"/>
  132.  
  133.           <preference id="pref-whenInsertingShow" name="extensions.sqlitemanager.whenInsertingShow" type="string"/>
  134.         </preferences>
  135.         <groupbox>
  136.         <caption label="&toolbar.caption;"/>
  137.           <checkbox id="cb-hideMainToolbar" label="&pref-hideMainToolbar.label;" preference="pref-hideMainToolbar" checked="false"/>
  138.           <checkbox id="cb-showMainToolbarDatabase" label="&pref-showMainToolbarDatabase.label;" style="padding-left:20px" preference="pref-showMainToolbarDatabase" checked="true"/>
  139.           <checkbox id="cb-showMainToolbarTable" label="&pref-showMainToolbarTable.label;" style="padding-left:20px" preference="pref-showMainToolbarTable" checked="true"/>
  140.           <checkbox id="cb-showMainToolbarIndex" label="&pref-showMainToolbarIndex.label;" style="padding-left:20px" preference="pref-showMainToolbarIndex" checked="true"/>
  141.           <checkbox id="cb-showMainToolbarDebug" label="&pref-showMainToolbarDebug.label;" style="padding-left:20px" preference="pref-showMainToolbarDebug"/>
  142.         </groupbox>
  143.  
  144.         <hbox>
  145.         <label value="&pref-notificationDuration.label;" style="padding-top:5px" accesskey="&pref-notificationDuration.ak;" control="tb-notificationDuration"/>
  146.         <spacer flex="1"/>
  147.         <textbox id="tb-notificationDuration" type="number" min="0" max="20" preference="pref-notificationDuration"/>
  148.         </hbox>
  149.  
  150.         <hbox>
  151.         <label value="&pref-displayNumRecords.label;" style="padding-top:5px" accesskey="&pref-displayNumRecords.ak;" control="tb-displayNumRecords"/>
  152.         <spacer flex="1"/>
  153.         <textbox id="tb-displayNumRecords" type="number" min="0" preference="pref-displayNumRecords"/>
  154.         </hbox>
  155.  
  156.         <hbox>
  157.         <label value="&pref-maxColumnsInTable.label;" style="padding-top:5px" accesskey="&pref-maxColumnsInTable.ak;" control="tb-maxColumnsInTable"/>
  158.         <spacer flex="1"/>
  159.         <textbox id="tb-maxColumnsInTable" type="number" min="5" preference="pref-maxColumnsInTable"/>
  160.         </hbox>
  161.         <hbox>
  162.           <label style="padding-top:3px" accesskey="&pref-whenInsertingShow.ak;" control="ml-whenInsertingShow" value="&pref-whenInsertingShow.label;"/>
  163.           <spacer flex="1"/>
  164.           <menulist id="ml-whenInsertingShow" style="width: 20ex" sizetopopup="always" preference="pref-whenInsertingShow">
  165.             <menupopup>
  166.               <menuitem label="previous" value="previous"/>
  167.               <menuitem label="default" value="default"/>
  168.             </menupopup>
  169.           </menulist>
  170.         </hbox>
  171.         <groupbox>
  172.         <caption label="&blobDisplay.caption;"/>
  173.         <hbox>
  174.         <label value="&pref-textForBlob.label;" style="padding-top:5px" accesskey="&pref-textForBlob.ak;" control="tb-textForBlob"/>
  175.         <spacer flex="1"/>
  176.         <textbox id="tb-textForBlob" flex="1" preference="pref-textForBlob"/>
  177.         </hbox>
  178.         <hbox>
  179.           <checkbox id="cb-showBlobSize" 
  180.             label="&pref-showBlobSize.label;" style="padding-left:20px" preference="pref-showBlobSize" checked="true"/>
  181.         </hbox>
  182.         <hbox>
  183.         <label value="&pref-maxSizeToShowBlobData.label;" style="padding-top:5px" accesskey="&pref-maxSizeToShowBlobData.ak;" control="tb-maxSizeToShowBlobData"/>
  184.         <spacer flex="1"/>
  185.         <textbox id="tb-maxSizeToShowBlobData" type="number" min="-1" preference="pref-maxSizeToShowBlobData"/>
  186.         </hbox>
  187.         <hbox>
  188.           <label value="&pref-displayDataAs.label;" style="padding-top:5px"/>
  189.           <spacer flex="1"/>
  190.           <menulist id="ml-blob.howToShowData" style="width: 20ex" sizetopopup="always" preference="pref-blob.howToShowData">
  191.             <menupopup>
  192.               <menuitem label="&pref-displayDataAs-hex;" value="0"/>
  193.               <menuitem label="&pref-displayDataAs-string;" value="1"/>
  194.             </menupopup>
  195.           </menulist>
  196.         </hbox>
  197.         </groupbox>
  198.       </prefpane>
  199.  
  200.       <prefpane id="datatree-options" label="Data Tree Style">
  201.         <preferences>
  202.           <preference id="pref-dataTreeStyle" name="extensions.sqlitemanager.dataTreeStyle" type="string"/>
  203.         </preferences>
  204.  
  205.         <grid>
  206.           <columns>
  207.             <column style="padding: 2px 15px;"/>
  208.             <column style="padding: 2px 15px;"/>
  209.             <column style="padding: 6px;" flex="1"/>
  210.             <column style="padding: 6px;" flex="1"/>
  211.           </columns>
  212.           <rows>
  213.             <row align="center">
  214.               <label value="Data type"/>
  215.               <label value="Property"/>
  216.               <label value="Unselected"/>
  217.               <label value="Selected"/>
  218.             </row>
  219.             <row align="center">
  220.               <html:hr/>
  221.               <html:hr/>
  222.               <html:hr/>
  223.               <html:hr/>
  224.             </row>
  225.             <row align="center">
  226.               <label value="Null"/>
  227.               <label value="color"/>
  228.               <colorpicker mktpref="dataTreeStyle.nullvalue.unselected.color" type="button"/>
  229.               <colorpicker mktpref="dataTreeStyle.nullvalue.selected.color" type="button"/>
  230.             </row>
  231.             <row align="center">
  232.               <label value=""/>
  233.               <label value="background-color"/>
  234.               <colorpicker mktpref="dataTreeStyle.nullvalue.unselected.background-color" type="button"/>
  235.               <colorpicker mktpref="dataTreeStyle.nullvalue.selected.background-color" type="button"/>
  236.             </row>
  237.             <row align="center">
  238.               <label value="Integer"/>
  239.               <label value="color"/>
  240.               <colorpicker mktpref="dataTreeStyle.integervalue.unselected.color" type="button"/>
  241.               <colorpicker mktpref="dataTreeStyle.integervalue.selected.color" type="button"/>
  242.             </row>
  243.             <row align="center">
  244.               <label value=""/>
  245.               <label value="background-color"/>
  246.               <colorpicker mktpref="dataTreeStyle.integervalue.unselected.background-color" type="button"/>
  247.               <colorpicker mktpref="dataTreeStyle.integervalue.selected.background-color" type="button"/>
  248.             </row>
  249.             <row align="center">
  250.               <label value="Float"/>
  251.               <label value="color"/>
  252.               <colorpicker mktpref="dataTreeStyle.floatvalue.unselected.color" type="button"/>
  253.               <colorpicker mktpref="dataTreeStyle.floatvalue.selected.color" type="button"/>
  254.             </row>
  255.             <row align="center">
  256.               <label value=""/>
  257.               <label value="background-color"/>
  258.               <colorpicker mktpref="dataTreeStyle.floatvalue.unselected.background-color" type="button"/>
  259.               <colorpicker mktpref="dataTreeStyle.floatvalue.selected.background-color" type="button"/>
  260.             </row>
  261.             <row align="center">
  262.               <label value="String"/>
  263.               <label value="color"/>
  264.               <colorpicker mktpref="dataTreeStyle.textvalue.unselected.color" type="button"/>
  265.               <colorpicker mktpref="dataTreeStyle.textvalue.selected.color" type="button"/>
  266.             </row>
  267.             <row align="center">
  268.               <label value=""/>
  269.               <label value="background-color"/>
  270.               <colorpicker mktpref="dataTreeStyle.textvalue.unselected.background-color" type="button"/>
  271.               <colorpicker mktpref="dataTreeStyle.textvalue.selected.background-color" type="button"/>
  272.             </row>
  273.             <row align="center">
  274.               <label value="Blob"/>
  275.               <label value="color"/>
  276.               <colorpicker mktpref="dataTreeStyle.blobvalue.unselected.color" type="button"/>
  277.               <colorpicker mktpref="dataTreeStyle.blobvalue.selected.color" type="button"/>
  278.             </row>
  279.             <row align="center">
  280.               <label value=""/>
  281.               <label value="background-color"/>
  282.               <colorpicker mktpref="dataTreeStyle.blobvalue.unselected.background-color" type="button"/>
  283.               <colorpicker mktpref="dataTreeStyle.blobvalue.selected.background-color" type="button"/>
  284.             </row>
  285.           </rows>
  286.         </grid>
  287.         <hbox style="text-align:right;">
  288.           <button id="btnTreeStyleDefault" label="Set Default" oncommand="sm_setDataTreeStyle('default')" />
  289.           <button id="btnTreeStyleNone" label="None" oncommand="sm_setDataTreeStyle('none')" />
  290.           <button id="btnTreeStyleApply" label="Apply" oncommand="sm_setDataTreeStyle('user')" />
  291.         </hbox>
  292.       </prefpane>
  293. </prefwindow>
  294.